<%@ page import="com.gymjournal.User" %>



<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'userName', 'error')} ">
	<label for="userName">
		<g:message code="user.userName.label" default="User Name" />
		
	</label>
	<g:textField name="userName" value="${userInstance?.userName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'trainings', 'error')} ">
	<label for="trainings">
		<g:message code="user.trainings.label" default="Trainings" />
		
	</label>
	<g:select name="trainings" from="${com.gymjournal.Training.list()}" multiple="multiple" optionKey="id" size="5" value="${userInstance?.trainings*.id}" class="many-to-many"/>
</div>

